]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
altTab: Query the correct monitor's size
authorAdel Gadllah <adel.gadllah@gmail.com>
Sun, 16 Jan 2011 12:34:31 +0000 (13:34 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sun, 16 Jan 2011 19:38:43 +0000 (20:38 +0100)
We always display the appSwitcher on the primary monitor,
so always query for its size rather than that of the focused
one.

js/ui/altTab.js

index b117fc8400f50727292d82f82fd13bc8f0c3f0c2..aa0e7e246947dec9701dfd7ebe2998e16caa06ca 100644 (file)
@@ -875,9 +875,9 @@ AppSwitcher.prototype = {
            totalSpacing += this._separator.width + this._list.spacing;
 
         // We just assume the whole screen here due to weirdness happing with the passed width
-        let focus = global.get_focus_monitor();
+        let primary = global.get_primary_monitor();
         let parentPadding = this.actor.get_parent().get_theme_node().get_horizontal_padding();
-        let availWidth = focus.width - parentPadding - this.actor.get_theme_node().get_horizontal_padding();
+        let availWidth = primary.width - parentPadding - this.actor.get_theme_node().get_horizontal_padding();
         let height = 0;
 
         for(let i =  0; i < iconSizes.length; i++) {